package io.kimmking.statemachine02.squirrel;

import org.springframework.stereotype.Repository;

@Repository
public class OrderMapper {

    public int submitOrder(OrderDTO dto, OrderState state) {
        // update status to database
        System.out.println("OrderMapper - submitOrder:" + dto.toString());
        return 1;
    }

    public int payOrder(OrderDTO dto, OrderState state) {
        // update status to database
        System.out.println("OrderMapper - payOrder:" + dto.toString());
        return 1;
    }

    // part_send

    // send

    // complete

}
